package com.itheima.day02_yuangong;

public class Clerk extends Employee{
    private Manager Manager;

    @Override
    public void showMsg() {
        System.out.println("工号：" + getWorkId() + "姓名：" + getName() + "部门：" + getDept() + "经理：" + getManager().getName());
    }

    public Clerk() {
    }

    public Clerk(String name, String workId, String dept, Manager manager) {
        super(name, workId, dept);
        Manager = manager;
    }

    public com.itheima.day02_yuangong.Manager getManager() {
        return Manager;
    }

    public void setManager(com.itheima.day02_yuangong.Manager manager) {
        Manager = manager;
    }
}
